package org.saiht.guestbook;

import java.util.Date;
import javax.jdo.annotations.*;

import javax.jdo.annotations.IdGeneratorStrategy;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class GuestBookEntry {
	
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private java.lang.Long id;
	
	@Persistent
	private Date date;
	
	@Persistent
	private String content;
	
	@Persistent
	private String poster;
	
	public GuestBookEntry() {}
	
	public GuestBookEntry(
			String poster,
			String content) {
		this.date = new Date();
		this.content = content;
		this.poster = poster;
	}
	
	public String getPoster() {
		return this.poster;
	}
	
	public String getContent() {
		return this.content;
	}
}
